package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureSpecialSubjectMapper;
import com.ruoyi.system.domain.DispatchPressureSpecialSubject;
import com.ruoyi.system.service.IDispatchPressureSpecialSubjectService;

/**
 * 压力专题Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureSpecialSubjectServiceImpl implements IDispatchPressureSpecialSubjectService 
{
    @Autowired
    private DispatchPressureSpecialSubjectMapper dispatchPressureSpecialSubjectMapper;

    /**
     * 查询压力专题
     * 
     * @param pressureSpecialSubjectId 压力专题主键
     * @return 压力专题
     */
    @Override
    public DispatchPressureSpecialSubject selectDispatchPressureSpecialSubjectByPressureSpecialSubjectId(Long pressureSpecialSubjectId)
    {
        return dispatchPressureSpecialSubjectMapper.selectDispatchPressureSpecialSubjectByPressureSpecialSubjectId(pressureSpecialSubjectId);
    }

    /**
     * 查询压力专题列表
     * 
     * @param dispatchPressureSpecialSubject 压力专题
     * @return 压力专题
     */
    @Override
    public List<DispatchPressureSpecialSubject> selectDispatchPressureSpecialSubjectList(DispatchPressureSpecialSubject dispatchPressureSpecialSubject)
    {
        return dispatchPressureSpecialSubjectMapper.selectDispatchPressureSpecialSubjectList(dispatchPressureSpecialSubject);
    }

    /**
     * 新增压力专题
     * 
     * @param dispatchPressureSpecialSubject 压力专题
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureSpecialSubject(DispatchPressureSpecialSubject dispatchPressureSpecialSubject)
    {
        return dispatchPressureSpecialSubjectMapper.insertDispatchPressureSpecialSubject(dispatchPressureSpecialSubject);
    }

    /**
     * 修改压力专题
     * 
     * @param dispatchPressureSpecialSubject 压力专题
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureSpecialSubject(DispatchPressureSpecialSubject dispatchPressureSpecialSubject)
    {
        return dispatchPressureSpecialSubjectMapper.updateDispatchPressureSpecialSubject(dispatchPressureSpecialSubject);
    }

    /**
     * 批量删除压力专题
     * 
     * @param pressureSpecialSubjectIds 需要删除的压力专题主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureSpecialSubjectByPressureSpecialSubjectIds(Long[] pressureSpecialSubjectIds)
    {
        return dispatchPressureSpecialSubjectMapper.deleteDispatchPressureSpecialSubjectByPressureSpecialSubjectIds(pressureSpecialSubjectIds);
    }

    /**
     * 删除压力专题信息
     * 
     * @param pressureSpecialSubjectId 压力专题主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureSpecialSubjectByPressureSpecialSubjectId(Long pressureSpecialSubjectId)
    {
        return dispatchPressureSpecialSubjectMapper.deleteDispatchPressureSpecialSubjectByPressureSpecialSubjectId(pressureSpecialSubjectId);
    }
}
